package com.otsdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.otsdemo.entity.Course;
import com.otsdemo.entity.Homework;
import com.otsdemo.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    @Select("SELECT course_name FROM course")
    List<Course> getAllCourses();
    @Insert("")
    boolean submitHomework(Homework homework);
    @Select("")
    boolean selectCourse(Integer courseId);
}
